import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
import App from '../App.vue'

const test = r => require.ensure([], () => r(require('@/page/test.vue')), 'test'); // 测试


const index = r => require.ensure([], () => r(require('@/page/index.vue')), 'index'); // 首页
const index2 = r => require.ensure([], () => r(require('@/page/index2.vue')), 'index2'); // 首页


const login = r => require.ensure([], () => r(require('@/page/login/login.vue')), 'login'); // 登录页面
const message = r => require.ensure([], () => r(require('@/page/message/message.vue')), 'message'); // 消息页面
const work_bench = r => require.ensure([], () => r(require('@/page/work_bench.vue')), 'work_bench') // 工作台
const Cockpit = r => require.ensure([], () => r(require('@/page/Cockpit/index.vue')), 'index') // 驾驶仓
const statistics_analysis = r => require.ensure([], () => r(require('@/page/statistics_analysis.vue')), 'statistics_analysis'); // 统计与分析
const expert_evaluation = r => require.ensure([], () => r(require('@/page/expert_evaluation.vue')), 'expert_evaluation'); // 专家评标
const menber_center = r => require.ensure([], () => r(require('@/page/menber_center.vue')), 'menber_center'); // 会员中心
const project_page = r => require.ensure([], () => r(require('@/page/projectInfo/project.vue')), 'project'); // 项目页面
const supplier_list = r => require.ensure([], () => r(require('@/page/category_supplier/supplier_list.vue')), 'supplier_list'); // 分类供应商
const find_suppliers = r => require.ensure([], () => r(require('@/page/find_suppliers/find_suppliers.vue')), 'find_suppliers'); // 查找分类供应商
const find_suppliers_list = r => require.ensure([], () => r(require('@/page/find_suppliers/list/find_suppliers_list.vue')), 'find_suppliers_list'); // 查看分类供应
const project_details = r => require.ensure([], () => r(require('@/components/details/vm-common-project.vue')), 'vm_common_project'); // 项目详情页面
const require_details = r => require.ensure([], () => r(require('@/components/details/vm-common-require.vue')), 'vm_common_require'); // 项目详情页面
const require_page = r => require.ensure([], () => r(require('@/page/requireInfo/require.vue')), 'require'); // 项目页面
const company_page = r => require.ensure([], () => r(require('@/page/companyInfo/company.vue')), 'company'); // 公司信息页面
const examine = r => require.ensure([], () => r(require('@/page/examineCenter/examine.vue')), 'examine_center'); // 审批中心
const device_access = r => require.ensure([], () => r(require('@/page/device_access/device_access.vue')), 'device_access'); // 设备接入申请
const addSupplyChain = r => require.ensure([], () => r(require('@/page/addSupplyChain/addSupplyChain.vue')), 'addSupplyChain'); // 加入供应链

const ManufacturingCloud = r => require.ensure([], () => r(require('@/page/ManufacturingCloud/index.vue')), 'index'); // 智能制造云
const ManufacturingCloud_point_details = r => require.ensure([], () => r(require('@/page/ManufacturingCloud/point_details.vue')), 'ManufacturingCloud_point_details'); // 点位号详情


const early_warning_details = r => require.ensure([], () => r(require('@/page/ManufacturingCloud/earlyWarning/early_warning_details.vue')), 'early_warning_details'); // 预警预报详情
const early_warning_manage = r => require.ensure([], () => r(require('@/page/ManufacturingCloud/earlyWarning/early_warning_manage.vue')), 'early_warning_manage'); // 预警预报管理
// 信采通
const xincaitong = r => require.ensure([], () => r(require('@/page/xincaitong/index.vue')), 'xincaitong');
// 信采通申请
const xincaitong_apply = r => require.ensure([], () => r(require('@/page/xincaitong/apply.vue')), 'xincaitong_apply');

// 营采通
const yingcaitong = r => require.ensure([], () => r(require('@/page/yingcaitong/index.vue')), 'yingcaitong');
// 营采通申请
const yingcaitong_apply = r => require.ensure([], () => r(require('@/page/yingcaitong/apply.vue')), 'yingcaitong_apply');

// 设备接入申请 details start
const safety_guarantee = r => require.ensure([], () => r(require('@/page/device_access/device_details/safety_guarantee.vue')), 'safety_guarantee'); // 设备接入申请 -> 安全保障详情页
const intelligent_edge = r => require.ensure([], () => r(require('@/page/device_access/device_details/intelligent_edge.vue')), 'intelligent_edge'); // 设备接入申请 -> 智能边缘网关

// 设备接入申请 details end

const examine_details = r => require.ensure([], () => r(require('@/components/details/vm-common-examine.vue')), 'vm_common_examine'); // 审批中心详情页
const business_transction = r => require.ensure([], () => r(require('@/page/businessTransctionCenter/businessTransaction.vue')), 'businessTransaction'); // 业务交易中心页面
const business_transction_can_participate_details = r => require.ensure([], () => r(require('@/components/details/vm-common-businessTransaction.vue')), 'vm_common_businessTransaction'); // 业务交易详情页
const matching_purchase = r => require.ensure([], () => r(require('@/page/matching_purchase/matching_purchase.vue')), 'matching_purchase'); // 匹配采购页面
const matching_purchase_list = r => require.ensure([], () => r(require('@/page/matching_purchase/matching_purchase_list.vue')), 'matching_purchase_list'); // 匹配采购页面
const my_bill = r => require.ensure([], () => r(require('@/page/my_bill/my_bill.vue')), 'my_bill'); // 我的制单页面
const my_offer = r => require.ensure([], () => r(require('@/page/my_offer/my_offer.vue')), 'my_offer'); // 我的报价页面

/* 工作台 start */

const work_bench_level_list = r => require.ensure([], () => r(require('@/components/work_bench/vm-common-level-list.vue')), 'vm-common-level-list'); // 工作台公共二级页面
const vendor_manageList = r => require.ensure([], () => r(require('@/page/work_bench-page/vendor/vendor_manageList.vue')), 'vendor_manageList'); // 供应商管理
const vendor_checkList = r => require.ensure([], () => r(require('@/page/work_bench-page/vendor/vendor_checkList.vue')), 'vendor_checkList'); // 供应商审核
const material_list = r => require.ensure([], () => r(require('@/page/work_bench-page/material/material_list.vue')), 'material_list'); // 物料列表
const item_manageList = r => require.ensure([], () => r(require('@/page/work_bench-page/projectmanage/item_manageList.vue')), 'item_manageList'); // 物料列表
const wantplan_demand_plan = r => require.ensure([], () => r(require('@/page/work_bench-page/wantplan/wantplan_demand_plan.vue')), 'wantplan_demand_plan'); // 需求计划
const wantplan_purchase_plan = r => require.ensure([], () => r(require('@/page/work_bench-page/wantplan/wantplan_purchase_plan.vue')), 'wantplan_purchase_plan'); // 采购计划
const wantplan_purchase_scheme = r => require.ensure([], () => r(require('@/page/work_bench-page/wantplan/wantplan_purchase_scheme.vue')), 'wantplan_purchase_scheme'); // 采购计划

/* 招投标 start */
const information_aggregation = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/information_aggregation.vue')), 'information_aggregation'); // 信息汇总
const status_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/status_list.vue')), 'status_list'); // 状态管理
const notice_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/notice_list.vue')), 'notice_list'); // 审核公告
const inquiry_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/inquiry_list.vue')), 'inquiry_list'); // 资格预审
const sendbids_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/sendbids_list.vue')), 'sendbids_list'); // 发布标书
const bidManage_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/bidManage_list.vue')), 'bidManage_list'); // 投标管理
const evalubid_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/evalubid_list.vue')), 'evalubid_list'); // 评标设置
const bidview_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/bidview_list.vue')), 'bidview_list'); // 中标查看
const bidpublicity_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/bidpublicity_list.vue')), 'bidpublicity_list'); // 中标公示
const bidend_list = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/bidend_list.vue')), 'bidend_list'); // 招标完成

const see_pre_qualification = r => require.ensure([], () => r(require('@/page/work_bench-page/invitebids/see_pre_qualification/see_pre_qualification.vue')), 'see_pre_qualification'); // 资格预审

/* 招投标 end */

const cpc_notice_list = r => require.ensure([], () => r(require('@/page/work_bench-page/bidding/cpc_notice_list.vue')), 'cpc_notice_list'); // 竞价比列表审核公告
const cpc_inquiry_list = r => require.ensure([], () => r(require('@/page/work_bench-page/bidding/cpc_inquiry_list.vue')), 'cpc_inquiry_list'); // 竞价比资格预审
const cpc_zbgslist = r => require.ensure([], () => r(require('@/page/work_bench-page/bidding/cpc_zbgslist.vue')), 'cpc_zbgslist'); // 竞价比结果公告
const enquiry_view = r => require.ensure([], () => r(require('@/page/work_bench-page/consultprice/enquiry_list.vue')), 'enquiry_list'); // 询价列表
const enquiry_successful_publicity = r => require.ensure([], () => r(require('@/page/work_bench-page/consultprice/enquiry_successful_publicity.vue')), 'enquiry_successful_publicity'); // 询价中标公示

const singleSource_list = r => require.ensure([], () => r(require('@/page/work_bench-page/single/singleSource_list.vue')), 'singleSource_list'); // 单一来源公告列表
const singleSource_successful_publicity = r => require.ensure([], () => r(require('@/page/work_bench-page/single/singleSource_successful_publicity.vue')), 'singleSource_successful_publicity'); // 单一来源中标公示


const competitiveNegotiation_list = r => require.ensure([], () => r(require('@/page/work_bench-page/negotiate/competitiveNegotiation_list.vue')), 'competitiveNegotiation_list'); // 谈判列表
const successful_publicity = r => require.ensure([], () => r(require('@/page/work_bench-page/negotiate/competitiveNegotiation_successful_publicity.vue')), 'competitiveNegotiation_successful_publicity'); // 中标公示

const advice_arrival_bill = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/advice_arrival_bill.vue')), 'advice_arrival_bill'); // 到货单
const InsPending_bill = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/InsPending_bill.vue')), 'InsPending_bill'); // 待检单
const quality_testing_bill = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/quality_testing_bill.vue')), 'quality_testing_bill'); // 质检单
const sales_return_bill = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/sales_return_bill.vue')), 'sales_return_bill'); // 退货单
const stock_management = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/stock_management.vue')), 'stock_management'); // 入库管理
const warehouse_management = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/warehouse_management.vue')), 'warehouse_management'); // 出库管理
const warehouse_list = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/warehouse_list.vue')), 'warehouse_list'); // 仓库列表
const warehouse_inventory = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/warehouse_inventory.vue')), 'warehouse_inventory'); // 仓库盘点
const warehouse_allotting = r => require.ensure([], () => r(require('@/page/work_bench-page/supplyChain/warehouse_allotting.vue')), 'warehouse_allotting'); // 仓库调拨
const contract_list = r => require.ensure([], () => r(require('@/page/work_bench-page/contract/contract_list.vue')), 'contract_list'); // 合同列表
/* 工作台 end */

// common Page
const common_offerList = r => require.ensure([], () => r(require('@/components/vm-common-offer-list.vue')), 'vm-common-offer-list'); // 我的报价列表页面
const common_offerItemDetails = r => require.ensure([], () => r(require('@/components/details/vm-common-offer.vue')), 'vm-common-offer'); // 我的报价详情页面
const common_details = r => require.ensure([], () => r(require('@/components/details/vm-common-details')), 'vm-common-details'); // 公共详情页
const common_pretrial = r => require.ensure([], () => r(require('@/components/details/vm-common-pretrial.vue')), 'vm-common-pretrial'); // 预审详情页面

// 智能制造云服务->设备分类管理
const znzz_device_category = r => require.ensure([], () => r(require('@/page/znzz_device_category/index.vue')), 'znzz_device_category'); // 首页
const znzz_device_detail = r => require.ensure([], () => r(require('@/page/znzz_device_category/device_detail.vue')), 'znzz_device_detail');  // 云设备详情
const znzz_insert_status = r => require.ensure([], () => r(require('@/page/znzz_device_category/insert_status.vue')), 'znzz_insert_status');  // 接入情况

// 智能制造云服务->通讯设备管理
const znzz_communication_device = r => require.ensure([], () => r(require('@/page/znzz_communication_device/index.vue')), 'znzz_communication_device'); // 首页
const znzz_communication_device_detail = r => require.ensure([], () => r(require('@/page/znzz_communication_device/device_detail.vue')), 'znzz_communication_device_detail'); // 通讯设备详情
const znzz_communication_insert_status = r => require.ensure([], () => r(require('@/page/znzz_communication_device/insert_status.vue')), 'znzz_communication_insert_status'); // 通讯设备接入情况

export default [
  {
    path: '/test',
    name: 'test',
    component: test,
    meta: {
      goBack: true,
      pageTitle: '测试',
    }
  },
  {
    path: '/',
    component: App,
    children: [
      {
        path: '',
        redirect: '/index'
      },
      {
        path: '/index',
        name: 'index',
        component: index,
        meta: {
          pageTitle: '沃库工业网ERP平台'
        }
      },
      {
        path: '/index2',
        name: 'index2',
        component: index2,
        meta: {
          pageTitle: '沃库工业网ERP平台'
        }
      },
      {
        path: '/work_bench',
        name: 'work_bench',
        component: work_bench,
        meta: {
          goBack: true,
          pageTitle: '沃库工业网ERP平台',
          isLogin: true
        }
      },
      {
        path: '/statistics_analysis',
        name: 'statistics_analysis',
        component: statistics_analysis,
        meta: {
          isLogin: true,
          goBack: true,
          pageTitle: '统计与分析',
        }
      },
      {
        path: '/expert_evaluation',
        name: 'expert_evaluation',
        component: expert_evaluation,
        meta: {
          isLogin: true,
          goBack: true,
          pageTitle: '专家评标',
        }
      },
      {
        path: '/menber_center',
        name: 'menber_center',
        component: menber_center,
        meta: {
          goBack: true,
          pageTitle: '会员中心',
          isLogin: true
        }
      }
    ]
  },
  // 登录页面
  {
    path: '/login',
    name: 'login',
    component: login,
    meta: {
      pageTitle: '账号密码登录',
      goBack: true
    }
  },
  // 消息页面
  {
    path: '/message',
    name: 'message',
    component: message,
    meta: {
      pageTitle: '消息中心',
      goBack: true
    }
  },
  // 项目页
  {
    path: '/project',
    name: 'project',
    component: project_page,
    meta: {
      pageTitle: '项目详情',
      goBack: true
    }
  },
  // 需求页
  {
    path: '/require',
    name: 'require',
    component: require_page,
    meta: {
      pageTitle: '需求详情',
      goBack: true
    }
  },
  // 项目详情页
  {
    path: '/project/details/:id',
    name: 'details_details',
    component: project_details,
    meta: {
      pageTitle: '项目详细',
      goBack: true
    }
  },
  // 需求详情页
  {
    path: '/require/details/:id',
    name: 'require_details',
    component: require_details,
    meta: {
      pageTitle: '公告详情',
      goBack: true
    }
  },
  // 审批中心页面
  {
    path: '/examine',
    name: 'examine',
    component: examine,
    meta: {
      pageTitle: '审批中心',
      goBack: true,
      isLogin: true
    }
  },
  // 审批中心详情页面
  {
    path: '/examine/details/:id',
    name: 'examine_details',
    component: examine_details,
    meta: {
      pageTitle: '公告详情',
      goBack: true,
      isLogin: true
    }
  },
  // 公司信息页面
  {
    path: '/company',
    name: 'company',
    component: company_page,
    meta: {
      pageTitle: '公司信息',
      goBack: true,
      isLogin: true
    }
  },
  //  业务交易中心页面
  {
    path: '/business_transction',
    name: 'business_transction',
    component: business_transction,
    meta: {
      pageTitle: '业务交易中心',
      goBack: true,
      isLogin: true
    }
  },
  // 业务交易中心详情
  {
    path: '/business_transction/can_participate/details/:id',
    name: 'business_transction_can_participate_details',
    component: business_transction_can_participate_details,
    meta: {
      pageTitle: '公告详情',
      goBack: true,
      isLogin: true
    }
  },
  // 分类供应商
  {
    path: '/category_supplier/supplier_list',
    name: 'category_supplier.supplier_list',
    component: supplier_list,
    meta: {
      pageTitle: '我的供应商',
      goBack: true,
      isLogin: true
    }
  },
  // 查找分类供应商
  {
    path: '/find_suppliers',
    name: 'find_suppliers',
    component: find_suppliers,
    meta: {
      pageTitle: '查找供应商',
      goBack: true,
      isLogin: true
    }
  },
  {
    path: '/find_suppliers/find_suppliers_list',
    name: 'find_suppliers.find_suppliers_list',
    component:find_suppliers_list,
    meta: {
      pageTitle: '查看供应商',
      goBack: true,
      isLogin: true
    }
  },
  // 匹配采购列表页面页面
  {
    path: '/matching_purchase_list',
    name: 'matching_purchase_list',
    component: matching_purchase_list,
    meta: {
      pageTitle: '匹配采购',
      goBack: true,
      isLogin: true
    }
  },
  // 匹配采购页面
  {
    path: '/matching_purchase',
    name: 'matching_purchase',
    component: matching_purchase,
    meta: {
      pageTitle: '发布匹配采购',
      goBack: true,
      isLogin: true
    }
  },
  {
    path: '/ManufacturingCloud',
    name: 'ManufacturingCloud',
    component: ManufacturingCloud,
    meta: {
      pageTitle: '我的智能制造云',
      goBack: true,
      isLogin: true
    }
  },
  {
    path: '/point_details',
    name: 'point_details',
    component: ManufacturingCloud_point_details,
    meta: {
      pageTitle: '点位号实时详情',
      goBack: true,
      isLogin: true
    }
  },{
    path: '/early_warning_details',
    name: 'early_warning_details',
    component: early_warning_details,
    meta: {
      pageTitle: '预警预报详情',
      goBack: true,
      isLogin: true
    }
  },
  {
    path: '/early_warning_manage',
    name: 'early_warning_manage',
    component: early_warning_manage,
    meta: {
      pageTitle: '预警预报管理',
      goBack: true,
      isLogin: true
    }
  },
  // 我的制单页面
  {
    path: '/menber_center/my_bill',
    name: 'my_bill',
    component: my_bill,
    meta: {
      pageTitle: '我的制单',
      goBack: true,
      isLogin: true
    }
  },
  // 我的报价页面
  {
    path: '/menber_center/my_offer',
    name: 'my_offer',
    component: my_offer,
    meta: {
      pageTitle: '我的报价',
      goBack: true,
      isLogin: true

    }
  },
  /* 工作台页面 start */
  {
    path: '/work_bench/common_level_list',
    name: 'work_bench.common_level_list',
    component: work_bench_level_list,
    meta: {
      goBack: true,
      isLogin: true
    }
  },
  // 供应商分类
  {
    path: '/work_bench/vendor/vendor_manageList',
    name: 'work_bench.vendor.vendor_manageList',
    component: vendor_manageList,
    meta: {
      goBack: true,
      pageTitle: '供应商管理',
      isLogin: true
    }
  },
  // 供应商审核
  {
    path: '/work_bench/vendor/vendor_checkList',
    name: 'work_bench.vendor.vendor_checkList',
    component: vendor_checkList,
    meta: {
      goBack: true,
      pageTitle: '供应商审核',
      isLogin: true
    }
  },
  // 物料列表
  {
    path: '/work_bench/material/material_list',
    name: 'work_bench.material.material_list',
    component: material_list,
    meta: {
      goBack: true,
      pageTitle: '物料列表',
      isLogin: true
    }
  },
  // 项目部位管理
  {
    path: '/work_bench/projectmanage/item_manageList',
    name: 'projectmanage.item_manageList',
    component: item_manageList,
    meta: {
      goBack: true,
      pageTitle: '项目部位管理',
      isLogin: true
    }
  },
  // 需求与计划管理
  {
    path: '/work_bench/wantplan/demand_plan',
    name: 'wantplan.demand_plan',
    component: wantplan_demand_plan,
    meta: {
      pageTitle: '需求计划',
      goBack: true,
      isLogin: true
    }
  },
  // 采购计划
  {
    path: '/work_bench/wantplan/purchase_plan',
    name: 'wantplan.purchase_plan',
    component: wantplan_purchase_plan,
    meta: {
      pageTitle: '采购计划',
      goBack: true,
      isLogin: true
    }
  },
  // 信息汇总
  {
    path: '/work_bench/invitebids/information_aggregation',
    name: 'invitebids.information_aggregation',
    component: information_aggregation,
    meta: {
      pageTitle: '信息汇总',
      goBack: true,
      isLogin: true
    }
  },
  // 状态管理
  {
    path: '/work_bench/invitebids/status_list',
    name: 'invitebids.status_list',
    component:status_list,
    meta: {
      pageTitle: '状态管理',
      goBack: true,
      isLogin: true
    }
  },
  // 审核公告
  {
    path: '/work_bench/invitebids/notice_list',
    name: 'invitebids.notice_list',
    component:notice_list,
    meta: {
      pageTitle: '审核公告',
      goBack: true,
      isLogin: true
    }
  },
  // 资格预审
  {
    path: '/work_bench/invitebids/inquiry_list',
    name: 'invitebids.inquiry_list',
    component:inquiry_list,
    meta: {
      pageTitle: '资格预审',
      goBack: true,
      isLogin: true
    }
  },
  // 发布标书
  {
    path: '/work_bench/invitebids/sendbids_list',
    name: 'invitebids.sendbids_list',
    component: sendbids_list,
    meta: {
      pageTitle: '发布标书',
      goBack: true,
      isLogin: true
    }
  },
  {
    path:'/work_bench/invitebids/bidManage_list',
    name: 'invitebids.bidManage_list',
    component: bidManage_list,
    meta: {
      pageTitle: '投标管理',
      goBack: true,
      isLogin: true
    }
  },
  {
    path: '/work_bench/invitebids/evalubid_list',
    name: 'invitebids.evalubid_list',
    component: evalubid_list,
    meta: {
      pageTitle: '评标设置',
      goBack: true,
      isLogin: true
    }
  },
  {
    path: '/work_bench/invitebids/bidview_list',
    name: 'invitebids.bidview_list',
    component: bidview_list,
    meta: {
      pageTitle: '中标查看',
      goBack: true,
      isLogin: true
    }
  },
  {
    path: '/work_bench/invitebids/bidpublicity_list',
    name: 'invitebids.bidpublicity_list',
    component: bidpublicity_list,
    meta: {
      pageTitle: '中标公示',
      goBack: true,
      isLogin: true
    }
  },
  {
    path: '/work_bench/invitebids/bidend_list',
    name: 'invitebids.bidend_list',
    component: bidend_list,
    meta: {
      pageTitle: '招标完成',
      goBack: true,
      isLogin: true
    }
  },
  // 查看资格预审
  {
    path: '/work_bench/invitebids/see_pre_qualification',
    name: 'invitebids.see_pre_qualification',
    component: see_pre_qualification,
    meta: {
      pageTitle: '查看资格预审',
      goBack: true,
      isLogin: true
    }
  },
  // 竞价比审核公告
  {
    path: '/work_bench/bidding/cpc_notice_list',
    name: 'bidding.cpc_notice_list',
    component:cpc_notice_list,
    meta: {
      pageTitle: '竞价比审核公告',
      goBack: true,
      isLogin: true
    }
  },
  // 竞比价资格预审
  {
    path: '/work_bench/bidding/cpc_inquiry_list',
    name: 'bidding.cpc_inquiry_list',
    component: cpc_inquiry_list,
    meta: {
      pageTitle: '竞比价资格预审',
      goBack: true,
      isLogin: true
    }
  },
  // 竟比价结果公示
  {
    path: '/work_bench/bidding/cpc_zbgslist',
    name: 'bidding.cpc_zbgslist',
    component: cpc_zbgslist,
    meta: {
      pageTitle: '竟比价结果公示',
      goBack: true,
      isLogin: true
    }
  },
  // 询价列表
  {
    path: '/work_bench/consultprice/enquiry_list',
    name: 'consultprice.enquiry_list',
    component:enquiry_view,
    meta: {
      pageTitle: '询价列表',
      goBack: true,
      isLogin: true
    }
  },
  // 中标公示
  {
    path: '/work_bench/consultprice/enquiry_successful_publicity',
    name: 'consultprice.enquiry_successful_publicity',
    component:enquiry_successful_publicity,
    meta: {
      pageTitle: '中标公示',
      goBack: true,
      isLogin: true
    }
  },
  // 公告列表
  {
    path: '/work_bench/single/singleSource_list',
    name: 'single.singleSource_list',
    component: singleSource_list,
    meta: {
      pageTitle: '公告列表',
      goBack: true,
      isLogin: true
    }
  },
  // 中标公示列表
  {
    path: '/work_bench/single/singleSource_successful_publicity',
    name: 'single.singleSource_successful_publicity',
    component: singleSource_successful_publicity,
    meta: {
      pageTitle: '中标公示列表',
      goBack: true,
      isLogin: true
    }
  },
  // 谈判列表
  {
    path: '/work_bench/negotiate/competitiveNegotiation_list',
    name: 'negotiate.competitiveNegotiation_list',
    component: competitiveNegotiation_list,
    meta: {
      pageTitle: '谈判列表',
      goBack: true,
      isLogin: true
    }
  },
  // 中标公示
  {
    path: '/work_bench/negotiate/competitiveNegotiation_successful_publicity',
    name: 'negotiate.competitiveNegotiation_successful_publicity',
    component: successful_publicity,
    meta: {
      pageTitle: '中标公示',
      goBack: true,
      isLogin: true
    }
  },
  // 采购方案
  {
    path: '/work_bench/wantplan/purchase_scheme',
    name: 'wantplan.purchase_scheme',
    component: wantplan_purchase_scheme,
    meta: {
      pageTitle: '采购方案',
      goBack: true,
      isLogin: true
    }
  },
  // 到货单
  {
    path: '/supplyChain/advice_arrival_bill',
    name: 'supplyChain.advice_arrival_bill',
    component: advice_arrival_bill,
    meta: {
      pageTitle: '到货单',
      goBack: true,
      isLogin: true
    }
  },
  // 待检单
  {
    path: '/supplyChain/InsPending_bill',
    name: 'supplyChain.InsPending_bill',
    component: InsPending_bill,
    meta: {
      pageTitle: '待检单',
      goBack: true,
      isLogin: true
    }
  },
  // 质检单
  {
    path: '/supplyChain/quality_testing_bill',
    name: 'supplyChain.quality_testing_bill',
    component: quality_testing_bill,
    meta: {
      pageTitle: '质检单',
      goBack: true,
      isLogin: true
    }
  },
  // 退货单
  {
    path: '/supplyChain/sales_return_bill',
    name: 'supplyChain.sales_return_bill',
    component: sales_return_bill,
    meta: {
      pageTitle: '退货单',
      goBack: true,
      isLogin: true
    }
  },
  // 入库管理
  {
    path: '/supplyChain/stock_management',
    name: 'supplyChain.stock_management',
    component: stock_management,
    meta: {
      pageTitle: '入库管理',
      goBack: true,
      isLogin: true
    }
  },
  // 出库管理
  {
    path: '/supplyChain/warehouse_management',
    name: 'supplyChain.warehouse_management',
    component: warehouse_management,
    meta: {
      pageTitle: '出库管理',
      goBack: true,
      isLogin: true
    }
  },
  // 仓库列表
  {
    path: '/supplyChain/warehouse_list',
    name: 'supplyChain.warehouse_list',
    component: warehouse_list,
    meta: {
      pageTitle: '仓库列表',
      goBack: true,
      isLogin: true
    }
  },
  // 仓库盘点
  {
    path: '/supplyChain/warehouse_inventory',
    name: 'supplyChain.warehouse_inventory',
    component: warehouse_inventory,
    meta: {
      pageTitle: '仓库盘点',
      goBack: true,
      isLogin: true
    }
  },
  // 仓库调拨
  {
    path: '/supplyChain/warehouse_allotting',
    name: 'supplyChain.warehouse_allotting',
    component: warehouse_allotting,
    meta: {
      pageTitle: '仓库调拨',
      goBack: true,
      isLogin: true
    }
  },
  // 合同列表
  {
    path: '/work_bench/contractmanage/contract_list',
    name: 'contractmanage.contract_list',
    component: contract_list,
    meta: {
      pageTitle: '合同列表',
      goBack: true,
      isLogin: true
    }
  },
  /* 工作台页面 end */

  /* 公共组件部分 start */
  // 我的报价列表页面
  {
    path: '/common/offer_list',
    name: 'common.offer_list',
    component: common_offerList,
    meta: {
      pageTitle: '报价列表',
      goBack: true,
      isLogin: true
    }
  },
  // 我的报价详情页面
  {
    path: '/common/offer_item_details/:id',
    name: 'common.offer_item_details',
    component: common_offerItemDetails,
    meta: {
      pageTitle: '报价详情',
      goBack: true,
      isLogin: true
    }
  },
  // common Page
  {
    path: '/common_details/:id/:objtype',
    name: 'common_details',
    component: common_details,
    meta: {
      goBack: true,
      isLogin: true
    }
  },
  // 预审详情
  {
    name: 'vm_common_pretrial',
    path: '/common/vm_common_pretrial/:id',
    component: common_pretrial,
    meta: {
      pageTitle: '预审详情',
      goBack: true,
    }
  },
  // 设备接入申请
  {
    name: 'device_access',
    path: '/device_access',
    component: device_access,
    meta: {
      pageTitle: '设备接入申请',
      goBack: true,
    }
  },
  // 加入供应链
  {
    name:'addSupplyChain',
    path: '/addSupplyChain',
    component: addSupplyChain
  },
  // 设备接入申请 -> 安全保障
  {
    path: '/device_access/safety_guarantee',
    name: 'device_access.safety_guarantee',
    component: safety_guarantee,
    meta: {
      pageTitle: '安全保障',
      goBack: true,
    }
  },
  {
    path: '/device_access/intelligent_edge',
    name: 'device_access.intelligent_edge',
    component: intelligent_edge,
    meta: {
      pageTitle: '智能边缘网关',
      goBack: true,
    }
  },
  // 信采通
  {
    path: '/xincaitong',
    name: 'xincaitong',
    component: xincaitong,
    meta: {
      pageTitle: '信采通',
      goBack: true
    }
  },
  // 信采通申请
  {
    path: '/xincaitong_apply',
    name: 'xincaitong_apply',
    component: xincaitong_apply,
    meta: {
      pageTitle: '信采通申请',
      goBack: true
    }
  },
  // 营采通
  {
    path: '/yingcaitong',
    name: 'yingcaitong',
    component: yingcaitong,
    meta: {
      pageTitle: '营采通',
      goBack: true
    }
  },
  // 营彩通申请
  {
    path: '/yingcaitong_apply',
    name: 'yingcaitong_apply',
    component: yingcaitong_apply,
    meta: {
      pageTitle: '营采通申请',
      goBack: true
    }
  },
  // 智能制造云设备分类管理
  {
    path: '/znzz_device_category',
    name: 'znzz_device_category',
    component: znzz_device_category,
    meta: {
      pageTitle: '设备分类管理',
      goBack: true
    }
  },
  // 智能制造运设备详情
  {
    path: '/znzz_device_detail',
    name: 'znzz_device_detail',
    component: znzz_device_detail,
    meta: {
      pageTitle: '设备详情',
      goBack: true
    }
  },
  // 智能制造云设备接入情况
  {
    path: '/znzz_insert_status',
    name: 'znzz_insert_status',
    component: znzz_insert_status,
    meta: {
      pageTitle: '设备接入情况',
      goBack: true
    }
  },
  // 智能制造云通讯设备管理
  {
    path: '/znzz_communication_device',
    name: 'znzz_communication_device',
    component: znzz_communication_device,
    meta: {
      pageTitle: '通讯设备管理',
      goBack: true
    }
  },
  // 智能制造云通讯设备详情
  {
    path: '/znzz_communication_device_detail',
    name: 'znzz_communication_device_detail',
    component: znzz_communication_device_detail,
    meta: {
      pageTitle: '通讯设备详情',
    }
  },
  // 智能制造云通讯设备接入情况
  {
    path: '/znzz_communication_insert_status',
    name: 'znzz_communication_insert_status',
    component: znzz_communication_insert_status,
    meta: {
      pageTitle: '通讯设备接入情况',
      goBack: true
    }
  },
  {
    path: "/Cockpit/index",
    name: "Cockpit.index",
    component: Cockpit,
    meta: {
      pageTitle: '智慧供应链云',
      goBack: true
    }
  }
  /* 公共组件部分 end */
]
